package web.opodoElements;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name="leg",propOrder={"legID", "id", "segments","majorityCarrier","duration","numAvailableSeats"})

/*
 * ho aggiunto legID per le recommendation
 */

public class Leg {

	@XmlElement
	private String legID;
	
	@XmlElement
	private String id;
	
	@XmlElement
	private Segments segments;
	
	@XmlElement
	private MajorityCarrier majorityCarrier;
	
	@XmlElement
	private String duration;
	
	@XmlElement
	private String numAvailableSeats;
	
	public Leg() {
		super();
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getId() {
		return id;
	}

	public void setSegments(Segments segments) {
		this.segments = segments;
	}

	public Segments getSegments() {
		return segments;
	}

	public void setMajorityCarrier(MajorityCarrier majorityCarrier) {
		this.majorityCarrier = majorityCarrier;
	}

	public MajorityCarrier getMajorityCarrier() {
		return majorityCarrier;
	}

	public void setDuration(String duration) {
		this.duration = duration;
	}

	public String getDuration() {
		return duration;
	}

	public void setNumAvailableSeats(String numAvailableSeats) {
		this.numAvailableSeats = numAvailableSeats;
	}

	public String getNumAvailableSeats() {
		return numAvailableSeats;
	}

	public void setLegID(String legID) {
		this.legID = legID;
	}

	public String getLegID() {
		return legID;
	}

}
